package com.xiumu.dao.blog;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiumu.pojo.blog.entity.BlogTag;
import com.xiumu.pojo.blog.query.BlogTagQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文章标签 Mapper 接口
 *
 * @author XiuMu
 * @Date 2023-01-30 14:13:46
 */
@Service
public interface BlogTagDao extends BaseMapper<BlogTag> {

    /**
     * 分页查询
     *
     * @param query     分页条件
     * @param blogTag 查询条件
     * @return
     */
    Page<BlogTag> selectPage(Page<BlogTag> query, @Param("authority") BlogTagQuery blogTag);

    /**
     * 根据条件查询 BlogTag
     *
     * @param blogTag 查询条件
     * @return
     */
    List<BlogTag> selectByBlogTag(@Param("blogTag") BlogTagQuery blogTag);
}